<?php
class ZThreadItem{
    private $threadTitle;
    private $url;
    private $numberOfPosts;
    private $numberOfAuthors;
    private $source;
    private $SMT;

    /**
     * @param $title String Title
     * @param $url String URL
     * @param $posts Int Number of posts
     * @param $authors Int Number of authors
     * @param $source String Source
     * @param $smt Int SMT id
     */
    public function __construct($title, $url, $posts, $authors, $source, $smt){
        $this->threadTitle = $title;
        $this->url = $url;
        $this->numberOfPosts = $posts;
        $this->numberOfAuthors = $authors;
        $this->source = $source;
        $this->SMT = $smt;
    }

    /**
     * @return String Thread Title
     */
    public function getThreadTitle(){
        return $this->threadTitle;
    }

    /**
     * Set Thread title
     * @param $value String
     */
    public function setThreadTitle($value){
        $this->threadTitle = $value;
    }
    /**
     * @return String Thread URL
     */
    public function getThreadURL(){
        return $this->url;
    }

    /**
     * @return Int Number of Posts
     */
    public function getNumberOfPosts(){
        return $this->numberOfPosts;
    }

    /**
     * @return Int Number of Authors
     */
    public function getNumberOfAuthors(){
        return $this->numberOfAuthors;
    }

    /**
     * @return String Source of Thread
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * @return Int SMT ID
     */
    public function getSMT(){
        return $this->SMT;
    }
}